package com.relife.core.easyui;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

@SuppressWarnings("serial")
public class DataGridQueryTag extends TagSupport {
	private String field;
	private String name;
	private String type = "text";
	private String code = null;
	private boolean select;
	private boolean extent;
	private String value;
	private String style;
	private String classNmae = "query-input";
	private String json;

	@Override
	public int doEndTag() throws JspException {
		DataGridTag p = (DataGridTag) findAncestorWithClass(this, DataGridTag.class);
		p.setQuery(this);
		return EVAL_PAGE;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	public boolean isSelect() {
		return select;
	}

	public void setSelect(boolean select) {
		this.select = select;
	}

	public String getClassNmae() {
		return classNmae;
	}

	public void setClassNmae(String classNmae) {
		this.classNmae = classNmae;
	}

	public String getJson() {
		return json;
	}

	public void setJson(String json) {
		this.json = json;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public boolean isExtent() {
		return extent;
	}

	public void setExtent(boolean extent) {
		this.extent = extent;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
